package com.Book.test_1_25_springmvcbook.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class BookInfo {
    private Integer id;
    private String bookName;
    private String author;
    private Integer count;
    // 前端展示精度
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal price;  //价格的定义
    private String publish; //出版社
    private Integer status; //状态, 一般用数字表示, 不用汉字. 0-删除 1-可借阅;2-不可借阅
    private String statusCN;

}
